﻿using System;
using System.Reflection;
using Microsoft.Extensions.DependencyInjection;

namespace Solution.Application.Extensions
{
    public static class AutoMapperExtensions
    {
        public static void RegisterAutoMapper(this IServiceCollection services)
        {
            services.AddAutoMapper(Assembly.Load("Solution.Application"));
            //services.AddAutoMapper(typeof(AutoMapperExtensions).GetTypeInfo().Assembly);
        }
    }
}